<%@page import="org.apache.jasper.tagplugins.jstl.ForEach"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%-- 	<c:forEach items="${blogs}" var="b"> --%>
	<%-- 	${b.title}<br> --%>
	<%-- 	</c:forEach> --%>
	<a href="/blog/form">新增</a>
	<table border="1">
		<thead>
			<tr>
				<th>序号</th>
				<th>标题</th>
				<th>发布时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<c:forEach items="${blogs}" var="b" varStatus="s">
			<tr>
				<%-- 				<th>${s.index+1}</th> --%>
				<th>${b.id}</th>
				<th>${b.title}</th>
				<th>${b.publishTime}</th>
				<th><a href="/blog/form?id=${b.id}">编辑</a>,<a href="/blog/delete?id=${b.id}">删除</a></th>
			</tr>
		</c:forEach>
	</table>
</body>
</html>